package com.autosalon.ui.spravaPujcek.state;

import com.autosalon.ui.spravaPujcek.SpravaPujcek;

public class SpravaPujcekStateHolder {

	public static ISpravaPujcekState[] NEW_PUJCKA_STATE = { new NewPujckaState(),new NewPujckaState()};
	public static ISpravaPujcekState[] VIEW_PUJCKY_STATE = {new ViewPujckyStateCustomer(), new ViewPujckyStateSeller()};

	public static void setState(ISpravaPujcekState[] spravaPujcekState, int id_role, SpravaPujcek spravaPujcek) {
		spravaPujcekState[id_role - 2].initComponents(spravaPujcek);
		spravaPujcekState[id_role - 2].initForms(spravaPujcek);
	}

}
